/// <reference path="../../Resources/js/jquery/jquery.debug.js" />

Type.registerNamespace("BM");

BM.MinimizeButton = {
    SectionCollapsed: "SC",
    ToggleUp: "MForm-ToggleUpBtn",
    ToggleDown: "MForm-ToggleDownBtn",

    showHideSection: function(node) {
        var sectionNode = $(node.parentNode.parentNode.parentNode);
        $(node).toggleClass(BM.MinimizeButton.ToggleUp + " " + BM.MinimizeButton.ToggleDown);
        sectionNode.toggleClass(BM.MinimizeButton.SectionCollapsed);
    }
}